package com.weixin.common.core.form;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @version 1.0.0
 * @className: UserAddForm
 * @description:
 * @author: zhangjunfa
 * @date: 2023/6/9 15:36
 */
@Data
public class UserAddForm implements Serializable {
    private static final long serialVersionUID = -5600655135615682232L;

    private Integer id;

    /**
     * 职务主键ID
     */
    @NotNull(message = "职务不能为空！")
    private Integer dutyId;

    /**
     * 昵称
     */
    @NotEmpty(message = "用户昵称不能为空！")
    private String nickName;

    /**
     * 联系号码
     */
    @NotEmpty(message = "用户联系号码不能为空！")
    private String phone;

    /**
     * 头像
     */
    private String avatar;

    /**
     * 机构编码
     */
    private String orgCode;

    /**
     * 性别
     */
    @NotNull(message = "用户性别不能为空！")
    private Integer sex;
}
